When closing document: Port Settings: